package com.framework.auth.pay.controller;

import com.framework.auth.common.log.LogAnnotation;
import com.framework.auth.pay.api.PaypalApi;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(PaypalApi.REQUEST_PREFIX)
public class PayPalController implements PaypalApi {

    @Override
    @PostMapping("/test")
    @LogAnnotation
    public Map<String, Object> test() {
        Map<String, Object> hashMap = new HashMap<>();
        hashMap.put("namge","吴梓烨");
        hashMap.put("age","4");
        return hashMap;
    }
}
